home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / daemons / switchd-.1 / switchd- / switchd / README < prev    next >
Encoding:
Text File  |  1996-04-02  |  2.1 KB  |  55 lines

  1. switchd v0.1
  2. ---------------
  3.  
  4. This is a little daemon that monitors keyboard activity on the console and
  5. will switch to a specified virtual console after a specified period of
  6. inactivity.  This is useful if you run some kind of system status program
  7. like top or procinfo on a vc and want that screen to be visible when no one
  8. is using the console.  With this daemon, if someone logs onto the system on
  9. the console but forgets to switch back to the status vc after logging out,
  10. the daemon will automatically switch it back for you.
  11.  
  12. The daemon is used as follows:
  13.  
  14. switchd inactivity_delay monitor_interval target_vc
  15.  
  16. - Inactivity_delay     is the time of inactivity (in seconds) that switchd
  17.             will wait before switching to the target vc.
  18.  
  19. - monitor_interval    is how often (in seconds) the daemon will check for
  20.             keyboard activity.  The smaller the number, the more
  21.             cpu time the daemon will use, but the larger the
  22.             number, the less resolution the daemon has.  For
  23.             example if you set the inactivity delay to 62
  24.             seconds but the monitor interval is 60 seconds the
  25.             vc will not get switched until 120 seconds of
  26.             inactivity.  Similarly, if delay is 60 seconds and
  27.             interval is 15 seconds, if someone presses a key 1
  28.             second after a monitor cycle, the switch will not
  29.             occur for 74 seconds.  Bascially, switches will
  30.             occur between (delay) and (delay + interval) seconds.
  31.  
  32. - target_vc        is the virtual console that the daemon will switch
  33.             to.
  34.  
  35. Example:
  36.  
  37. switchd 300 15 3
  38.  
  39. This will switch to vc #3 after 5 minutes of inactivity and checks every
  40. fifteen seconds.  These are resonable values (no noticable load on a 386sx),
  41. and they are the settings I use.
  42.  
  43. If you have any questions, suggestions, or comments, please let me know.
  44.  
  45. Ervin Walter
  46. <00edwalter@bsuvc.bsu.edu>
  47.  
  48. Copyright (c) 1996 by Ervin Walter <00edwalter@bsuvc.bsu.edu>
  49.  
  50. This program is free software; you can redistribute it and/or
  51. modify it under the terms of the GNU General Public License
  52. as published by the Free Software Foundation; either version
  53. 2 of the License, or (at your option) any later version.
  54.       
  55.